home *** CD-ROM | disk | FTP | other *** search
/ Champak 61 / Volume 61 - JOGO DISK .iso / Games / fruit_cake_decoration.swf / scripts / DefineButton2_381 / BUTTONCONDACTION on(release).as next >
Text File  |  2008-03-12  |  4KB  |  147 lines

  1. on(release){
  2.    if(_root.bread_1 == "on")
  3.    {
  4.       _root.step1 = "on";
  5.       _root.mess_1.gotoAndStop(1);
  6.       _root.mes_back.play();
  7.    }
  8.    else if(_root.bread_2 == "on")
  9.    {
  10.       _root.step1 = "on";
  11.       _root.mess_1.gotoAndStop(1);
  12.       _root.mes_back.play();
  13.    }
  14.    else if(_root.bread_3 == "on")
  15.    {
  16.       _root.step1 = "on";
  17.       _root.mess_1.gotoAndStop(1);
  18.       _root.mes_back.play();
  19.    }
  20.    else if(_root.bread_4 == "on")
  21.    {
  22.       _root.step1 = "on";
  23.       _root.mess_1.gotoAndStop(1);
  24.       _root.mes_back.play();
  25.    }
  26.    else if(_root.bread_5 == "on")
  27.    {
  28.       _root.step1 = "on";
  29.       _root.mess_1.gotoAndStop(1);
  30.       _root.mes_back.play();
  31.    }
  32.    else if(_root.bread_6 == "on")
  33.    {
  34.       _root.step1 = "on";
  35.       _root.mess_1.gotoAndStop(1);
  36.       _root.mes_back.play();
  37.    }
  38.    else if(_root.bread_1 == "off" && _root.bread_2 == "off" && _root.bread_3 == "off" && _root.bread_4 == "off" && _root.bread_5 == "off" && _root.bread_6 == "off")
  39.    {
  40.       _root.mess_1.gotoAndPlay(2);
  41.       _root.mes_back.play();
  42.    }
  43.    if(_root.step1 == "on")
  44.    {
  45.       if(_root.cream_1 == "on")
  46.       {
  47.          _root.step2 = "on";
  48.          _root.mess_2.play();
  49.          _root.mess_3.gotoAndPlay(2);
  50.          _root.mes_back.play();
  51.       }
  52.       else if(_root.cream_2 == "on")
  53.       {
  54.          _root.step2 = "on";
  55.          _root.mess_2.play();
  56.          _root.mess_3.gotoAndPlay(2);
  57.          _root.mes_back.play();
  58.       }
  59.       else if(_root.cream_3 == "on")
  60.       {
  61.          _root.step2 = "on";
  62.          _root.mess_2.play();
  63.          _root.mess_3.gotoAndPlay(2);
  64.          _root.mes_back.play();
  65.       }
  66.       else if(_root.cream_4 == "on")
  67.       {
  68.          _root.step2 = "on";
  69.          _root.mess_2.play();
  70.          _root.mess_3.gotoAndPlay(2);
  71.          _root.mes_back.play();
  72.       }
  73.       else if(_root.cream_5 == "on")
  74.       {
  75.          _root.step2 = "on";
  76.          _root.mess_2.play();
  77.          _root.mess_3.gotoAndPlay(2);
  78.          _root.mes_back.play();
  79.       }
  80.       else if(_root.cream_6 == "on")
  81.       {
  82.          _root.step2 = "on";
  83.          _root.mess_2.play();
  84.          _root.mess_3.gotoAndPlay(2);
  85.          _root.mes_back.play();
  86.       }
  87.       if(_root.cream_1 == "off" && _root.cream_2 == "off" && _root.cream_3 == "off" && _root.cream_4 == "off" && _root.cream_5 == "off" && _root.cream_6 == "off")
  88.       {
  89.          _root.mess_2.gotoAndPlay(2);
  90.          _root.mes_back.play();
  91.       }
  92.    }
  93.    if(_root.step2 == "on")
  94.    {
  95.       if(_root.step3 == "off")
  96.       {
  97.          _root.non = "mid";
  98.          _root.mess_4.gotoAndPlay(2);
  99.          _root.mess_3.gotoAndStop(1);
  100.          _root.item_mc.gotoAndStop(2);
  101.          _root.step3 = "pass";
  102.       }
  103.       if(_root.non_1 == "on")
  104.       {
  105.          _root.step3 = "on";
  106.          _root.mess_3.gotoAndStop(1);
  107.          _root.mess_4.gotoAndPlay(2);
  108.          _root.mes_back.play();
  109.       }
  110.       else if(_root.non_2 == "on")
  111.       {
  112.          _root.step3 = "on";
  113.          _root.mess_3.gotoAndStop(1);
  114.          _root.mess_4.gotoAndPlay(2);
  115.          _root.mes_back.play();
  116.       }
  117.       else if(_root.non_3 == "on")
  118.       {
  119.          _root.step3 = "on";
  120.          _root.mess_3.gotoAndStop(1);
  121.          _root.mess_4.gotoAndPlay(2);
  122.          _root.mes_back.play();
  123.       }
  124.       else if(_root.non_4 == "on")
  125.       {
  126.          _root.step3 = "on";
  127.          _root.mess_3.gotoAndStop(1);
  128.          _root.mess_4.gotoAndPlay(2);
  129.          _root.mes_back.play();
  130.       }
  131.       else if(_root.non_5 == "on")
  132.       {
  133.          _root.step3 = "on";
  134.          _root.mess_3.gotoAndStop(1);
  135.          _root.mess_4.gotoAndPlay(2);
  136.          _root.mes_back.play();
  137.       }
  138.       else if(_root.non_6 == "on")
  139.       {
  140.          _root.step3 = "on";
  141.          _root.mess_3.gotoAndStop(1);
  142.          _root.mess_4.gotoAndPlay(2);
  143.          _root.mes_back.play();
  144.       }
  145.    }
  146. }
  147.